package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.annotation.Excel;
import com.ly.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 调拨单明细对象 erp_king_allocate_detail
 * 
 * @author wutao
 * @date 2024-08-07
 */
@TableName("erp_king_allocate_detail")
@ApiModel(value = "erp_king_allocate_detail调拨对象", description = "调拨单明细")
@Data
public class KingAllocateDetailEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 调拨单明细id */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /** 调拨单id */
    @ApiModelProperty("调拨单id")
    @TableField("allocate_id")
    @Excel(name = "调拨单id")
    private String allocateId;

    /** 源单id */
    @Excel(name = "源单id")
    @ApiModelProperty("源单id")
    @TableField("source_relation_id")
    private String sourceRelationId;

    /** 源单物料明细id */
    @Excel(name = "源单物料明细id")
    @TableField("source_material_detail_id")
    @ApiModelProperty("源单物料明细id")
    private String sourceMaterialDetailId;

    /** 物料id */
    @Excel(name = "物料id")
    @TableField("material_id")
    @ApiModelProperty("物料id")
    private String materialId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    @TableField("material_code")
    @ApiModelProperty("物料编码")
    private String materialCode;

    /** 规格型号 */
    @Excel(name = "规格型号")
    @TableField("mode")
    @ApiModelProperty("规格型号")
    private String mode;

    /** 单位 */
    @Excel(name = "单位")
    @TableField("unit")
    @ApiModelProperty("单位")
    private String unit;

    /** 调拨数量 */
    @Excel(name = "调拨数量")
    @TableField("allocate_num")
    @ApiModelProperty("调拨数量/申请调拨数量")
    private String allocateNum;

    /** 批号 */
    @Excel(name = "批号")
    @TableField("batch_num")
    @ApiModelProperty("批号")
    private String batchNum;

    @TableField("out_allocate_org")
    @ApiModelProperty("调出组织")
    private String outAllocateOrg;

    @TableField("in_allocate_org")
    @ApiModelProperty("调入组织")
    private String inAllocateOrg;

    /** 调出仓库 */
    @Excel(name = "调出仓库")
    @TableField("out_warehouse")
    @ApiModelProperty("调出仓库")
    private String outWarehouse;

    /** 调入仓库 */
    @Excel(name = "调入仓库")
    @TableField("in_warehouse")
    @ApiModelProperty("调入仓库")
    private String inWarehouse;

    /** 调出仓位 */
    @Excel(name = "调出仓位")
    @TableField("out_warehouse_region")
    @ApiModelProperty("调出仓位")
    private String outWarehouseRegion;

    /** 调入仓位 */
    @Excel(name = "调入仓位")
    @TableField("in_warehouse_region")
    @ApiModelProperty("调入仓位")
    private String inWarehouseRegion;

    /** 调出库存状态 */
    @Excel(name = "调出库存状态")
    @TableField("out_inventory_state")
    @ApiModelProperty("调出库存状态")
    private String outInventoryState;

    /** 调入库存状态 */
    @Excel(name = "调入库存状态")
    @TableField("in_inventory_state")
    @ApiModelProperty("调入库存状态")
    private String inInventoryState;

    /** 质量类型 */
    @Excel(name = "质量类型")
    @TableField("quality_type")
    @ApiModelProperty("质量类型")
    private String qualityType;

    /** 调出货主 */
    @Excel(name = "调出货主")
    @ApiModelProperty("调出货主")
    @TableField("out_owner")
    private String outOwner;

    /** 调入货主 */
    @Excel(name = "调入货主")
    @ApiModelProperty("调入货主")
    @TableField("in_owner")
    private String inOwner;

    /** 是否启用(1是2否) */
    @Excel(name = "是否启用(1是2否)")
    @TableField("is_used")
    @ApiModelProperty("是否启用(1是2否)")
    private String isUsed;

    @ApiModelProperty("业务类型(1调拨申请单明细2调拨单明细)")
    @TableField("business_type")
    private String businessType;

}
